#FROM image for springboot file run
# 基础镜像使用java
FROM registry.cn-shanghai.aliyuncs.com/hd-tools/java:latest
VOLUME /tmp
# 其效果是在主机 /var/lib/docker 目录下创建一个临时文件，并链接到容器的/tmp
ADD ./me-admin/target/me-admin.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+8","-jar","/app.jar","--spring.profiles.active=prod","-c"]